package com.ruoyi.user.model.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


@Getter
@Setter
@Accessors(chain = true)
@TableName("youban_balance")
@ApiModel(value = "Balance对象", description = "用户余额表")
public class Balance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("余额id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("余额")
    private BigDecimal balance = BigDecimal.ZERO;

    @ApiModelProperty("类型0余额1金币2星钻3魔钻")
    private Integer type;
}
